if(true){  
            var test = 'is it a block var?';  
}  
  
function testing(){  
            var test = 'testing scope!';  
}  
testing();  
  
console.debug(test);  

var global = 'this is a global var!';  

console.debug(window.global);  

function globalScopeFunction(){  
    globalScope = 'this is a new var in the global scope!';  
}  
globalScopeFunction();  

console.debug(globalScope);  
console.debug(window.globalScope);  